package com.lancoo.znbkxx.teacher.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lancoo.znbkxx.teacher.model.data.NotReviewed
import com.lancoo.znbkxx.teacher.utils.DensityUtils
import kotlinx.android.synthetic.main.item_stu_progress.view.*


/**
 * @author : Admin
 * @date   : 2019/11/28 20:37
 * @desc   :
 */
class ReviewedAdapter(resId: Int, data: MutableList<NotReviewed>?) :
    BaseQuickAdapter<NotReviewed, BaseViewHolder>(resId, data) {
    override fun convert(helper: BaseViewHolder, item: NotReviewed?) {
        val params = helper.itemView.tv.layoutParams
        params.width = DensityUtils.dp2px(mContext, 260f / 3)
        helper.itemView.tv.layoutParams = params
        helper.itemView.tv.text = item?.StuName
    }
}